AssociateRouteTable
Description
call the AssociateRouteTable interface to bind the created custom routing table to the switch in the same VPC.
Request Method
POST
Request Path
/apsara/route/Vpc/AssociateRouteTable
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
RouteTableId | BODY | string | Yes | vtb-bp145q7glnuzdvzu2**** | ID of the routing table to be bound to the switch. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
VSwitchId | BODY | string | Yes | vsw-25ncdvfaue4**** | ID of the switch to bind the routing table. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the VPC to which the routing table to bind the switch belongs. You can obtain the region ID by calling the DescribeRegions interface. |
ClientToken | BODY | string | No | 02fb3da4-130e-11e9-8e44-0016e04115b | Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}